<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CIpcIoServer类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="class_c_ipc_io_server-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CIpcIoServer类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>扩展的c++11 tcp server类  
 <a href="class_c_ipc_io_server.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a12dd16906f72d7e06244a6435fe3dd9e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#a12dd16906f72d7e06244a6435fe3dd9e">CIpcIoServer</a> (bool isWriteLog=false)</td></tr>
<tr class="memdesc:a12dd16906f72d7e06244a6435fe3dd9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数  <a href="class_c_ipc_io_server.html#a12dd16906f72d7e06244a6435fe3dd9e">更多...</a><br /></td></tr>
<tr class="separator:a12dd16906f72d7e06244a6435fe3dd9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ea26003f12bf038d6d8e49d5c881e66"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#a2ea26003f12bf038d6d8e49d5c881e66">~CIpcIoServer</a> ()</td></tr>
<tr class="separator:a2ea26003f12bf038d6d8e49d5c881e66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55efd5d5edd7acb32972a3823ddefd31"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_sock_error.html">CSockError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#a55efd5d5edd7acb32972a3823ddefd31">Init</a> (const char *name)</td></tr>
<tr class="memdesc:a55efd5d5edd7acb32972a3823ddefd31"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化服务器类  <a href="class_c_ipc_io_server.html#a55efd5d5edd7acb32972a3823ddefd31">更多...</a><br /></td></tr>
<tr class="separator:a55efd5d5edd7acb32972a3823ddefd31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d7a33231ced6eda3b9ee106b7cead6b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#a9d7a33231ced6eda3b9ee106b7cead6b">Run</a> ()</td></tr>
<tr class="memdesc:a9d7a33231ced6eda3b9ee106b7cead6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行服务  <a href="class_c_ipc_io_server.html#a9d7a33231ced6eda3b9ee106b7cead6b">更多...</a><br /></td></tr>
<tr class="separator:a9d7a33231ced6eda3b9ee106b7cead6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27161c9e70e644b1d2788441ef0e3076"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#a27161c9e70e644b1d2788441ef0e3076">Run_One</a> ()</td></tr>
<tr class="memdesc:a27161c9e70e644b1d2788441ef0e3076"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行一次服务  <a href="class_c_ipc_io_server.html#a27161c9e70e644b1d2788441ef0e3076">更多...</a><br /></td></tr>
<tr class="separator:a27161c9e70e644b1d2788441ef0e3076"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a945e85590ca13c3d4b7330155e104b28"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#a945e85590ca13c3d4b7330155e104b28">NotifyStop</a> ()</td></tr>
<tr class="memdesc:a945e85590ca13c3d4b7330155e104b28"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止  <a href="class_c_ipc_io_server.html#a945e85590ca13c3d4b7330155e104b28">更多...</a><br /></td></tr>
<tr class="separator:a945e85590ca13c3d4b7330155e104b28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a746bf836dd22fb8a39ece045f326f6f0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#a746bf836dd22fb8a39ece045f326f6f0">IsStop</a> () const</td></tr>
<tr class="memdesc:a746bf836dd22fb8a39ece045f326f6f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">服务是否停止  <a href="class_c_ipc_io_server.html#a746bf836dd22fb8a39ece045f326f6f0">更多...</a><br /></td></tr>
<tr class="separator:a746bf836dd22fb8a39ece045f326f6f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca3c4d76560f34639663f93b39284cf9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#aca3c4d76560f34639663f93b39284cf9">WaitServerStop</a> ()</td></tr>
<tr class="memdesc:aca3c4d76560f34639663f93b39284cf9"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止并等待  <a href="class_c_ipc_io_server.html#aca3c4d76560f34639663f93b39284cf9">更多...</a><br /></td></tr>
<tr class="separator:aca3c4d76560f34639663f93b39284cf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5303c8f51f357ac51390c41f3bf80157"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_basic_service.html">CBasicService</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#a5303c8f51f357ac51390c41f3bf80157">GetIpcServicePtr</a> ()</td></tr>
<tr class="memdesc:a5303c8f51f357ac51390c41f3bf80157"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取底层服务类  <a href="class_c_ipc_io_server.html#a5303c8f51f357ac51390c41f3bf80157">更多...</a><br /></td></tr>
<tr class="separator:a5303c8f51f357ac51390c41f3bf80157"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">投递一个接收连接请求</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cliSock</td><td>已连接的套接字类 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>用户传递的回调数据 </td></tr>
  </table>
  </dd>
</dl>
</div></td></tr>
<tr class="memitem:ae52c8b676492e7fcb304e4898bbcaa34"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:ae52c8b676492e7fcb304e4898bbcaa34"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#ae52c8b676492e7fcb304e4898bbcaa34">AsyncAccept</a> (<a class="el" href="class_c_ipc_socket.html">CIpcSocket</a> &amp;cliSock, const Func &amp;func)</td></tr>
<tr class="separator:ae52c8b676492e7fcb304e4898bbcaa34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd29a6d61f157b9ba14f7e1ecfb75d45"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:afd29a6d61f157b9ba14f7e1ecfb75d45"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#afd29a6d61f157b9ba14f7e1ecfb75d45">AsyncAccept</a> (<a class="el" href="class_c_ipc_socket.html">CIpcSocket</a> &amp;cliSock, const Func &amp;func, void *invoker)</td></tr>
<tr class="separator:afd29a6d61f157b9ba14f7e1ecfb75d45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">投递一个接收请求</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已连接的套接字类 </td></tr>
    <tr><td class="paramname">buff</td><td>接收缓冲 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>用户传递的数据 </td></tr>
  </table>
  </dd>
</dl>
</div></td></tr>
<tr class="memitem:ac8ef5f1d1b1d94cb3fcf13259263bc96"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:ac8ef5f1d1b1d94cb3fcf13259263bc96"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#ac8ef5f1d1b1d94cb3fcf13259263bc96">AsyncRead</a> (<a class="el" href="class_c_ipc_socket.html">CIpcSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, Func func)</td></tr>
<tr class="separator:ac8ef5f1d1b1d94cb3fcf13259263bc96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab11d81dd17eacd9a2498cb158c9973cf"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:ab11d81dd17eacd9a2498cb158c9973cf"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#ab11d81dd17eacd9a2498cb158c9973cf">AsyncRead</a> (<a class="el" href="class_c_ipc_socket.html">CIpcSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, Func func, void *invoker)</td></tr>
<tr class="separator:ab11d81dd17eacd9a2498cb158c9973cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">投递一个写请求</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已连接的套接字类 </td></tr>
    <tr><td class="paramname">buff</td><td>发送缓冲 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>用户传递的数据 </td></tr>
  </table>
  </dd>
</dl>
</div></td></tr>
<tr class="memitem:a6cf632d61e840384aa78b4879749a41f"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:a6cf632d61e840384aa78b4879749a41f"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#a6cf632d61e840384aa78b4879749a41f">AsyncSend</a> (<a class="el" href="class_c_ipc_socket.html">CIpcSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, const Func &amp;func)</td></tr>
<tr class="separator:a6cf632d61e840384aa78b4879749a41f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0c4523dd20c1b027ca0ee07decea672"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:ae0c4523dd20c1b027ca0ee07decea672"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#ae0c4523dd20c1b027ca0ee07decea672">AsyncSend</a> (<a class="el" href="class_c_ipc_socket.html">CIpcSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, const Func &amp;func, void *invoker)</td></tr>
<tr class="separator:ae0c4523dd20c1b027ca0ee07decea672"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">投递一个中断请求</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
  </table>
  </dd>
</dl>
</div></td></tr>
<tr class="memitem:a5f9556a9d4f8b4b39c11267d8fa05760"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:a5f9556a9d4f8b4b39c11267d8fa05760"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#a5f9556a9d4f8b4b39c11267d8fa05760">Post</a> (const Func &amp;func)</td></tr>
<tr class="separator:a5f9556a9d4f8b4b39c11267d8fa05760"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba0fc2d0cf7d360a1c5759bf072a7d24"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:aba0fc2d0cf7d360a1c5759bf072a7d24"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#aba0fc2d0cf7d360a1c5759bf072a7d24">Post</a> (const Func &amp;func, void *invoker)</td></tr>
<tr class="separator:aba0fc2d0cf7d360a1c5759bf072a7d24"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a4e270ba9b8adecd082b5d613f58cd7c7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_ipc_server.html">CIpcServer</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a></td></tr>
<tr class="separator:a4e270ba9b8adecd082b5d613f58cd7c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:ad5c098ed55ba405ed01e4f1b070f6e60"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ipc_io_server.html#ad5c098ed55ba405ed01e4f1b070f6e60">delete_class_copy_operator</a> (<a class="el" href="class_c_ipc_io_server.html">CIpcIoServer</a>)</td></tr>
<tr class="separator:ad5c098ed55ba405ed01e4f1b070f6e60"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>扩展的c++11 tcp server类 </p>
<dl class="section remark"><dt>备注</dt><dd>之所以服务类不支持多地址的绑定，原因如下: 1.Windows下对ipc的编程模型问题；Windows下没有绑定地址这一步操作， 直接使用client socket的地址通过ConnectNamedPipe投递一个接收连接操作 2.ipc一般用于进程间的通信，通信地址一个设备一个服务类足够满足使用需求 </dd></dl>

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00014">14</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a12dd16906f72d7e06244a6435fe3dd9e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12dd16906f72d7e06244a6435fe3dd9e">&#9670;&nbsp;</a></span>CIpcIoServer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CIpcIoServer::CIpcIoServer </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isWriteLog</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>构造函数 </p>

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00019">19</a> 行定义.</p>

</div>
</div>
<a id="a2ea26003f12bf038d6d8e49d5c881e66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ea26003f12bf038d6d8e49d5c881e66">&#9670;&nbsp;</a></span>~CIpcIoServer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CIpcIoServer::~CIpcIoServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00023">23</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="ae52c8b676492e7fcb304e4898bbcaa34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae52c8b676492e7fcb304e4898bbcaa34">&#9670;&nbsp;</a></span>AsyncAccept() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CIpcIoServer::AsyncAccept </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_ipc_socket.html">CIpcSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>cliSock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Func &amp;&#160;</td>
          <td class="paramname"><em>func</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00042">42</a> 行定义.</p>

</div>
</div>
<a id="afd29a6d61f157b9ba14f7e1ecfb75d45"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd29a6d61f157b9ba14f7e1ecfb75d45">&#9670;&nbsp;</a></span>AsyncAccept() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CIpcIoServer::AsyncAccept </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_ipc_socket.html">CIpcSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>cliSock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Func &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00046">46</a> 行定义.</p>

</div>
</div>
<a id="ac8ef5f1d1b1d94cb3fcf13259263bc96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8ef5f1d1b1d94cb3fcf13259263bc96">&#9670;&nbsp;</a></span>AsyncRead() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CIpcIoServer::AsyncRead </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_ipc_socket.html">CIpcSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Func&#160;</td>
          <td class="paramname"><em>func</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00060">60</a> 行定义.</p>

</div>
</div>
<a id="ab11d81dd17eacd9a2498cb158c9973cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab11d81dd17eacd9a2498cb158c9973cf">&#9670;&nbsp;</a></span>AsyncRead() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CIpcIoServer::AsyncRead </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_ipc_socket.html">CIpcSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Func&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00064">64</a> 行定义.</p>

</div>
</div>
<a id="a6cf632d61e840384aa78b4879749a41f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cf632d61e840384aa78b4879749a41f">&#9670;&nbsp;</a></span>AsyncSend() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CIpcIoServer::AsyncSend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_ipc_socket.html">CIpcSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Func &amp;&#160;</td>
          <td class="paramname"><em>func</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00078">78</a> 行定义.</p>

</div>
</div>
<a id="ae0c4523dd20c1b027ca0ee07decea672"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0c4523dd20c1b027ca0ee07decea672">&#9670;&nbsp;</a></span>AsyncSend() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CIpcIoServer::AsyncSend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_ipc_socket.html">CIpcSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Func &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00082">82</a> 行定义.</p>

</div>
</div>
<a id="ad5c098ed55ba405ed01e4f1b070f6e60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5c098ed55ba405ed01e4f1b070f6e60">&#9670;&nbsp;</a></span>delete_class_copy_operator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CIpcIoServer::delete_class_copy_operator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_ipc_io_server.html">CIpcIoServer</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a5303c8f51f357ac51390c41f3bf80157"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5303c8f51f357ac51390c41f3bf80157">&#9670;&nbsp;</a></span>GetIpcServicePtr()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_basic_service.html">CBasicService</a>* CIpcIoServer::GetIpcServicePtr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取底层服务类 </p>

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00137">137</a> 行定义.</p>

</div>
</div>
<a id="a55efd5d5edd7acb32972a3823ddefd31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55efd5d5edd7acb32972a3823ddefd31">&#9670;&nbsp;</a></span>Init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_sock_error.html">CSockError</a> CIpcIoServer::Init </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>初始化服务器类 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>管道名称 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回SUCC，失败返回相应的错误码 </dd></dl>

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00030">30</a> 行定义.</p>

</div>
</div>
<a id="a746bf836dd22fb8a39ece045f326f6f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a746bf836dd22fb8a39ece045f326f6f0">&#9670;&nbsp;</a></span>IsStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CIpcIoServer::IsStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>服务是否停止 </p>
<dl class="section return"><dt>返回</dt><dd>停止服务返回true,未停止返回false </dd></dl>

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00127">127</a> 行定义.</p>

</div>
</div>
<a id="a945e85590ca13c3d4b7330155e104b28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a945e85590ca13c3d4b7330155e104b28">&#9670;&nbsp;</a></span>NotifyStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CIpcIoServer::NotifyStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止 </p>

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00119">119</a> 行定义.</p>

</div>
</div>
<a id="a5f9556a9d4f8b4b39c11267d8fa05760"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f9556a9d4f8b4b39c11267d8fa05760">&#9670;&nbsp;</a></span>Post() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CIpcIoServer::Post </td>
          <td>(</td>
          <td class="paramtype">const Func &amp;&#160;</td>
          <td class="paramname"><em>func</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00093">93</a> 行定义.</p>

</div>
</div>
<a id="aba0fc2d0cf7d360a1c5759bf072a7d24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba0fc2d0cf7d360a1c5759bf072a7d24">&#9670;&nbsp;</a></span>Post() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CIpcIoServer::Post </td>
          <td>(</td>
          <td class="paramtype">const Func &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00097">97</a> 行定义.</p>

</div>
</div>
<a id="a9d7a33231ced6eda3b9ee106b7cead6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d7a33231ced6eda3b9ee106b7cead6b">&#9670;&nbsp;</a></span>Run()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CIpcIoServer::Run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行服务 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00106">106</a> 行定义.</p>

</div>
</div>
<a id="a27161c9e70e644b1d2788441ef0e3076"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27161c9e70e644b1d2788441ef0e3076">&#9670;&nbsp;</a></span>Run_One()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CIpcIoServer::Run_One </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行一次服务 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回true，失败返回false </dd></dl>

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00114">114</a> 行定义.</p>

</div>
</div>
<a id="aca3c4d76560f34639663f93b39284cf9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca3c4d76560f34639663f93b39284cf9">&#9670;&nbsp;</a></span>WaitServerStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CIpcIoServer::WaitServerStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止并等待 </p>

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00132">132</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a4e270ba9b8adecd082b5d613f58cd7c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e270ba9b8adecd082b5d613f58cd7c7">&#9670;&nbsp;</a></span>_service</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;<a class="el" href="class_c_ipc_server.html">CIpcServer</a>&gt; CIpcIoServer::_service</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a> 第 <a class="el" href="_ipc_io_server_8h_source.html#l00141">141</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/ipc/<a class="el" href="_ipc_io_server_8h_source.html">IpcIoServer.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
